package org.truenewx.tnxjee.repo.jdbc.flyway;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.flyway.FlywayMigrationStrategy;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration("tnxjeeFlywayConfiguration") // 避免与可能存在的默认flyway配置冲突
public class FlywayConfiguration {

    @Bean
    @ConditionalOnMissingBean
    public FlywayMigrationStrategy defaultFlywayMigrationStrategy() {
        return new DefaultMigrationStrategy();
    }

}
